//收费预存
import request from '@/utils/request'

//查询列表
export function tcDailyaccountlist(query) {
    return request({
      url: '/tcDailyaccount/list',
      method: 'get',
      params: query
    })
  }

//团队列表
  export function tsTeamlist() {
    return request({
      url: '/tsTeam/list',
      method: 'get',
    })
  }
  //课题组列表
  export function tsTaskuserlist(query) {
    return request({
      url: '/tsTask/list',
      method: 'get',
      params: query
    })
  }
  //人员列表
  export function listtsTaskuser(query) {
    return request({
      url: '/tsTaskuser/list',
      method: 'get',
      params: query
    })
  }

  //添加自动生成单号
  export function getFbillno() {
    return request({
      url: '/data/area/getFbillno?flag=2035',
      method: 'get',
    })
  }
  //保存收费预存
  export function tcDailyaccountcreate(data) {
    return request({
      url: '/tcDailyaccount/create',
      method: 'post',
      data
    })
  }
  //更新收费预存
  export function tcDailyaccountupdate(data) {
    return request({
      url: '/tcDailyaccount/update',
      method: 'post',
      data
    })
  }

  //删除
  export function tcDailyaccountdelete(data) {
    return request({
      url: '/tcDailyaccount/delete/'+data,
      method: 'delete',
    })
  }
  //确认
 function tcDailyaccountaffirm(data) {
    return request({
      url: '/tcDailyaccount/affirm/'+data,
      method: 'get'
    })
  }

  // 作废
  export function cance(data) {
    return request({
      url: '/tcDailyaccount/cance',
      method: 'get',
      params: data
    })
  }
